package com.olive.service;

import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 * 消费者
 * 
 * @author TR
 *
 */
@Component
public class ConcumerService {

    /**
     * 消费广播消息
     * 
     * @return
     */
    @Bean
    public CustomConsumer myBroadcast0() {  // 方法名必须与生产消息时自定义的绑定名称一致
        return new CustomConsumer();
    }
}